using Microsoft.EntityFrameworkCore;
using MvcDemo02.Models;

namespace MvcDemo02.Db
{
    public class DbSql:DbContext
    {
        protected override void OnConfiguring(DbContextOptionsBuilder builder)
        {
            builder.UseSqlServer(@"server=.;database=MvcDemo02;uid=sa;pwd=123456");
        }
        public DbSet<Student> student {get;set;}
    }
}